package com.woniuxy.moneyapp.client;

import com.alipay.api.AlipayApiException;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.woniuxy.commons.util.Result;
import com.woniuxy.moneyapp.client.param.*;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;


@FeignClient(value= "fund",path = "/fundPath",contextId = "CashoutRecordClient")
@Component
//第一个是context path 第二个是
public interface CashoutRecordClient {

    @ApiOperation("提现业务")
    @PostMapping("/cashoutRecord/cashout")
    Result<CashoutDto> cashout(@RequestBody @Valid CashoutForm cashAmount) throws AlipayApiException, JsonProcessingException;








}
